<template>
    <fieldset>
        <legend>商品详情</legend>
        <h1>{{ msg }}</h1>
    </fieldset>
</template>


<script>
export default {
    data(){
        return{
            msg:''
        }
    },
    mounted(){
        let productid = this.$route.params.productid;
        // console.log(this.$route.query.id)
        // let productid = this.$route.query.id;
        fetch("http://chst.vip:1234/api/getmoneyctrlproduct?productid=" + productid)
        .then(body=>body.json())
        .then(res=>{
            console.log(res)
            this.msg = res.result[0].productInfo2

        })
    }
}
</script>
